package com.ayuku.course.ui.mentor;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class CompMentor extends Composite {

	private Text txtKode;
	private Text txtName;
	int dateSelected = 0;
	private Text txtPhone;
	private Text txtEmail;
	private Text txtKursus;
	private Label lblPhone;
	private Label lblEmail;
	private Label lblMataPelajaran;
	private Label lblPendidikan;
	private CCombo cmbPendidikan;
	private CLabel lblAlamat;
	private Text txtAddress;
	private DateTime txtJoinDate;
	private Label lblNewLabel_2;
	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public CompMentor(Composite parent, int style) {
		super(parent, SWT.NONE);
	
		setLayout(new GridLayout(2, false));

		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setText("Kode");

		txtKode = new Text(this, SWT.BORDER);
		txtKode.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,
				1, 1));

		Label lblNewLabel_1 = new Label(this, SWT.NONE);
		lblNewLabel_1.setText("Nama");

		txtName = new Text(this, SWT.BORDER);
		txtName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,
				1, 1));
		
		lblPhone = new Label(this, SWT.NONE);
		lblPhone.setText("Phone");
		
		txtPhone = new Text(this, SWT.BORDER);
		txtPhone.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
		
		lblEmail = new Label(this, SWT.NONE);
		lblEmail.setText("Email");
		
		txtEmail = new Text(this, SWT.BORDER);
		txtEmail.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
		
		lblMataPelajaran = new Label(this, SWT.NONE);
		lblMataPelajaran.setText("Mata Pelajaran");
		
		txtKursus = new Text(this, SWT.BORDER);
		txtKursus.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
		
		lblPendidikan = new Label(this, SWT.NONE);
		lblPendidikan.setText("Pendidikan");
		
		cmbPendidikan = new CCombo(this, SWT.BORDER);
		cmbPendidikan.setItems(new String[] {"D1", "D2", "D3", "S1", "S2", "S3"});
		
		lblNewLabel_2 = new Label(this, SWT.NONE);
		lblNewLabel_2.setText("Join Date");
		
		txtJoinDate =  new DateTime(this,  SWT.BORDER | SWT.DROP_DOWN);		
		txtJoinDate.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
		
		lblAlamat = new CLabel(this, SWT.NONE);
		lblAlamat.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, true, 1, 1));
		lblAlamat.setText("Alamat");
		
		txtAddress = new Text(this, SWT.BORDER | SWT.WRAP | SWT.MULTI);
		txtAddress.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	}



	public CCombo getCmbPendidikan() {
		return cmbPendidikan;
	}



	public void setCmbPendidikan(CCombo cmbPendidikan) {
		this.cmbPendidikan = cmbPendidikan;
	}



	public Text getTxtPhone() {
		return txtPhone;
	}



	public void setTxtPhone(Text txtPhone) {
		this.txtPhone = txtPhone;
	}



	public Text getTxtEmail() {
		return txtEmail;
	}



	public void setTxtEmail(Text txtEmail) {
		this.txtEmail = txtEmail;
	}



	public Text getTxtKursus() {
		return txtKursus;
	}



	public void setTxtKursus(Text txtKursus) {
		this.txtKursus = txtKursus;
	}



	public Text getTxtAddress() {
		return txtAddress;
	}



	public void setTxtAddress(Text txtAddress) {
		this.txtAddress = txtAddress;
	}



	public DateTime getTxtJoinDate() {
		return txtJoinDate;
	}



	public void setTxtJoinDate(DateTime txtJoinDate) {
		this.txtJoinDate = txtJoinDate;
	}



	public int getDateSelected() {
		return dateSelected;
	}

	public void setDateSelected(int dateSelected) {
		this.dateSelected = dateSelected;
	}

	public Text getTxtKode() {
		return txtKode;
	}

	public void setTxtKode(Text txtKode) {
		this.txtKode = txtKode;
	}

	public Text getTxtName() {
		return txtName;
	}

	public void setTxtName(Text txtNama) {
		this.txtName = txtNama;
	}



	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
